Skip to main content

Accounts Tables

The accounts_changelog and accounts_latest tables stores the data of all supplier groups, including contact details, location, services offered and permissions assigned to them.


🔹 Standard Columns​

Column NameData TypeNullableDescription
document_nameSTRINGYESName of the document
document_event_idSTRINGYESUnique ID for the document change event
document_timestampTIMESTAMPYESTimestamp of the document event
document_operationSTRINGYESType of document operation (e.g., INSERT, UPDATE, DELETE)
document_idSTRINGYESUnique identifier of the document
accountIdSTRINGYESUnique identifier for the account
belongsToDINetworkBOOLYESIndicates if the account belongs to the DI Network
allowFastTrackEnquiryProgressionBOOLYESIndicates if fast-track enquiry progression is allowed
billingRefIdSTRINGYESReference ID for billing purposes
companyRegistrationNumberSTRINGYESCompany registration number
enforceMfaBOOLYESIndicates if multi-factor authentication is enforced
feeSTRINGYESFee associated with the account
groupIdSTRINGYESIdentifier for the group the account belongs to
isBillingAddressSameAsAddressBOOLYESIndicates if the billing address is the same as the primary address
isBillingContactSameAsContactBOOLYESIndicates if the billing contact is the same as the primary contact
isPayingAddressSameAsBillingAddressBOOLYESIndicates if the paying address is the same as the billing address
isPayingContactSameAsBillingContactBOOLYESIndicates if the paying contact is the same as the billing contact
lastUpdatedINT64YESTimestamp of the last update
localeSTRINGYESLocale setting for the account
nameSTRINGYESName of the account
tariffChargeSTRINGYESCharge associated with the tariff
useHeadOfficeNameAndAddressBOOLYESIndicates if the head office name and address should be used
vatRegistrationNumberSTRINGYESVAT registration number
visnAccountNumberSTRINGYESVISN account number

🔸 Struct Columns​

address​

Column NameData TypeNullableDescription
address1STRINGYESAddress 1 of the supplier group
address2STRINGYESAddress 2 of the supplier group
address3STRINGYESAddress 3 of the supplier group
countySTRINGYEScounty of the supplier group
numberSTRINGYESnumber of the supplier group
postcodeSTRINGYESpostcode of the supplier group

billingAddress​

Same structure as address above.

payingAddress​

Same structure as address above.

contact​

Column NameData TypeNullableDescription
contactNumber1STRINGYESPrimary contact number
emailSTRINGYESEmail address
faxNumberSTRINGYESFax number
firstNameSTRINGYESFirst name
lastNameSTRINGYESLast name
titleSTRINGYESTitle

billingContact​

Same structure as contact.

payingContact​

Column NameData TypeNullableDescription
faxNumberSTRINGYESFax number
contactNumber1STRINGYESContact number
emailSTRINGYESEmail address
firstNameSTRINGYESFirst name
lastNameSTRINGYESLast name
titleSTRINGYESTitle
useDirectPaybillNameBOOLYESIndicates if direct paybill name is used

creditLimit.agreedCreditLimit​

Column NameData TypeNullableDescription
maskedSTRINGYESMasked credit limit value
rawFLOAT64YESRaw credit limit value
valueFLOAT64YESActual agreed credit limit
updatedBySTRUCTYESMetadata on who last updated the credit info

creditLimit.agreedCreditLimit.updatedBy​

Column NameData TypeNullableDescription
lastUpdatedTIMESTAMPYESTimestamp of last update
usernameSTRINGYESUsername of the updater

emailNotificationsConfig​

Column NameData TypeNullableDescription
sendDailyStatsReportEmailBOOLYESWhether daily stats email is enabled

platformFees​

Column NameData TypeNullableDescription
acceptedBookingFeeSTRUCTYESAccepted booking fee with masked/raw/value fields
currencySTRINGYESCurrency code
feesScheduleFLOAT64YESFee schedule rate
merchantFeeSTRUCTYESMerchant fee details
paymentMethodSTRINGYESPreferred payment method
reportingLicenceFeeSTRUCTYESReporting licence fee details
transactionFeeSTRUCTYESTransaction fee details

platformFees.acceptedBookingFee platformFees.reportingLicenceFee platformFees.transactionFee and platformFees.merchantFee​

Column NameData TypeNullableDescription
maskedSTRINGYESMasked fee value
rawFLOAT64YESRaw fee value
valueINT64YESFinal fee amount

status​

Column NameData TypeNullableDescription
labelSTRINGYESStatus label
statusSTRINGYESInternal status code

subscriptionEndDate and subscriptionStartDate​

Column NameData TypeNullableDescription
_secondsINT64YESSeconds since Unix epoch
_nanosecondsINT64YESNanoseconds portion

subscriptionType​

Column NameData TypeNullableDescription
subscriptionTypeSTRINGYESSubscription Type

tariff​

Column NameData TypeNullableDescription
tariffSTRINGYEStariff

user​

Column NameData TypeNullableDescription
activatedBOOLYESIndicates if user is activated
contactSTRUCTYESContact details
createdTimestampSTRUCTYESAccount creation timestamp
firstnameSTRINGYESFirst name of the user
keySTRINGYESUser key
lastnameSTRINGYESLast name of the user
roleARRAY STRINGYESList of roles
rolesSTRUCTYESRole-specific permissions
updatedTimestampSTRUCTYESLast updated timestamp

user.contact​

Column NameData TypeNullableDescription
contactNumber1STRINGYESPrimary contact number
contactNumber2STRINGYESSecondary contact number
emailSTRINGYESEmail address

user.createdTimestamp and user.updatedTimestamp​

Column NameData TypeNullableDescription
secondsINT64YESSeconds since Unix epoch
nanosecondsINT64YESNanoseconds portion

user.roles​

Column NameData TypeNullableDescription
fileValidationARRAY STRINGYESFile validation permissions
paybillARRAY STRINGYESPaybill feature permissions
saviARRAY STRINGYESSAVI system permissions
supportARRAY STRINGYESSupport-related roles